#!/bin/bash

INSTALL_PREFIX=/home/${USER}/tmp/bin/llvm-latest
mkdir -p ${INSTALL_PREFIX}
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
mkdir build
cd build
cmake -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi" -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} ../llvm
make -j16
make install
